import Vue from 'vue'
import moment from 'moment'
import ElementUI from 'element-ui'
import App from './App.vue'
import router from './router'
import store from './store'

import 'element-ui/lib/theme-chalk/index.css'
import '@/styles/index.scss'

Vue.config.productionTip = false

Vue.use(ElementUI)

Vue.filter('formatDate', (value: any, str = 'yyyy-MM-DD HH:mm:ss') => {
  return moment(value).format(str)
})

new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app')
